﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhaoxi.AdvancedCourse.Attrs
{
    public class ObsoleteAttr
    {

        [Obsolete("PrintOut 已弃用,用Print方法代替", true)]
        public void PrintOut(string msg)
        {
            Console.WriteLine("打印消息：" + msg);
        }

        public void Print(string msg)
        {
            Console.WriteLine("输出信息：" + msg);
        }
    }
}
